home *** CD-ROM | disk | FTP | other *** search
- 158
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- MakeShortcutEx
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baMakeShortcutEx creates a Windows 95/NT shortcut.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baMakeShortcutEx( FileName, Path, Title, Args, WorkDir, Icon,
- --- RECORDSEPARATOR ---
- IconNumber, Hotkey, State )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, string, string, string, string, string, integer, integer, string.
- --- RECORDSEPARATOR ---
- Filename is the name of the file the shortcut will point to.
- --- RECORDSEPARATOR ---
- Path is the folder to create the shortcut in.
- --- RECORDSEPARATOR ---
- Title is the name of the shortcut.
- --- RECORDSEPARATOR ---
- Args is any command line arguments to use.
- --- RECORDSEPARATOR ---
- WorkDir is the working directory to set.
- --- RECORDSEPARATOR ---
- Icon is the name of the icon file.
- --- RECORDSEPARATOR ---
- IconNumber is the number of the icon in Icon to use.
- --- RECORDSEPARATOR ---
- Hokey is the virtual key code of the hotkey to assign to the shortcut.
- --- RECORDSEPARATOR ---
- State is the state to start the program in. Can be "normal", "min", "max"
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 1 if successful, else 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set ok = baMakeShortcutEx( "c:\windows\notepad.exe", "c:\temp", "My Notepad", "",
- --- RECORDSEPARATOR ---
- "c:\windows", "c:\windows\moricons.dll", 12, 65, "normal" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- ok := baMakeShortcutEx( "c:\\window\\notepad.exe", baSysFolder( "desktop" ), "My
- --- RECORDSEPARATOR ---
- Document", docpath ^ "theFile.txt", "", "", 0, 65, "max" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- This function is only available in the 32 bit version running under Windows 95 or
- --- RECORDSEPARATOR ---
- NT 4. If used in 16 bit or under earlier versions of NT, it will do nothing and return
- --- RECORDSEPARATOR ---
- 0.
- --- RECORDSEPARATOR ---
- This function is an extended version of baMakeShortcut. Only the first three
- --- RECORDSEPARATOR ---
- arguments are required - if any of the others are an empty string or 0, they will be
- --- RECORDSEPARATOR ---
- ignored.
- --- RECORDSEPARATOR ---
- The Icon parameter can be either an .ico, .exe or .dll file. If the file is a .ico, then
- --- RECORDSEPARATOR ---
- the IconNumber parameter is ignored. If it is a .exe or .dll file, then the IconNumber
- --- RECORDSEPARATOR ---
- is the number of the icon in that file to use. If the Icon is an empty string (""), then
- --- RECORDSEPARATOR ---
- the first icon in the Command .exe file will be used.
- --- RECORDSEPARATOR ---
- The Hotkey is a number that represents the virtual key code to use as the hotkey.
- --- RECORDSEPARATOR ---
- The actual hotkey will be Ctrl + Alt + the key. eg a value of 65 will produce a hotkey
- --- RECORDSEPARATOR ---
- of Ctrl+Alt+A. If the value is negative then Shift will also be used. eg -66 will
- --- RECORDSEPARATOR ---
- produce Ctrl+Alt+Shift+B. A list of Virtual Key Codes is supplied.